home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_977 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  347 b   |  16 lines

  1. on(release){
  2.    if(_root.magRune >= 4 && this.timey.timer == 100)
  3.    {
  4.       this.timey.timer = 0;
  5.       this.timey.timeIt = 0.9;
  6.       this.timey._visible = true;
  7.       _root.magRune -= 4;
  8.       _root.hpRestore._visible = true;
  9.       _root.hpRestore.gotoAndPlay(2);
  10.    }
  11.    else
  12.    {
  13.       _root.messy = "Not enough Runes";
  14.    }
  15. }
  16.